POV-Ray : Newsgroups : povray.newusers : splines of variable length : Re: splines of variable length Server Time
30 Jul 2024 14:23:37 EDT (-0400)
  Re: splines of variable length  
From: Kurts
Date: 22 Feb 2004 04:38:32
Message: <kurtzlepirate-698849.10382722022004@news.povray.org>
In article <4037d7b3@news.povray.org>, "Hughes, B." <omn### [at] charternet> 
wrote:

> sphere_sweep doesn't seem to accept all the points given it by #while loop,
> from what I've found.

  ??? and why not ?

#declare sphereRadius = ...;
#declare myPoint = <0, 0, 0>;
#declare index = 0;

#declare mySphereSweep = sphere_sweep {
  cubic_spline
  n,
  #while (index<n)
    #set myPoint = compute x,y,z for index's point;
    <myPoint.x, myPoint.y, myPoint.z>, sphereRadius
    #set index=index+1;
  #end
  }

then use :
  object { mySphereSweep texture { } }

a+


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.